package cn.itsource.ymcc.domain;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author whale
 * @since 2021-10-31
 */
@TableName("t_course_cart")
@Data
public class CourseCart extends Model<CourseCart> {

    private static final long serialVersionUID = 1L;

    @TableField("course_name")
    private String courseName;
    @TableField("course_pic")
    private String coursePic;

    /**
     * 价格冗余
     */
    @TableField("course_price")
    private BigDecimal coursePrice;
    @TableField("old_course_price")
    private BigDecimal oldCoursePrice;

    private Integer count;
    @TableField("create_time")
    private Date createTime;
    @TableField("update_time")
    private Date updateTime;
    /**
     * 状态：正常，删除
     */
    private Integer status;

    /**
     * 等级名字
     */
    @TableField("grade_name")
    private String gradeName;
    /**
     * 备注
     */
    @TableField("course_note")
    private String courseNote;
    @TableField("course_id")
    private Long courseId;
    /**
     * 用户ID
     */
    @TableField("login_id")
    private Long loginId;


    @Override
    protected Serializable pkVal() {
        return this.courseId;
    }

}
